<template>
   <!-- <keep-alive :include="['CouponCode']">
   </keep-alive> -->
<keep-alive>
   <router-view></router-view>
</keep-alive>
</template>

<script setup lang="ts">
   import api from "@/api";
   import { useRouterStore } from "@/stores/router";
   const routerStore = useRouterStore();

   interface resDate {
      code: number;
      data: any;
      msg: string;
   }

   onMounted(async () => {
      let token = localStorage.getItem("token");
      if (token) {
         routerStore.filterMenuList();
      }
   });
</script>

<style lang="scss">
   @import "./style/index.scss";
   @import "./style/theme.css";
</style>
